package com.hk.model.vo.spaceuser;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hk.model.vo.space.SpaceVO;
import com.hk.model.vo.user.UserVO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 空间用户关联
 * @TableName space_user
 */
@Data
public class SpaceUserVO implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 空间 id
     */
    private Long spaceId;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 空间角色：viewer/editor/admin
     */
    private String spaceRole;

    /**
     * 创建时间
     */
    private Date createTime;

    private UserVO userVO;

    private SpaceVO spaceVO;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}